package org.zhenggn.designpattern.chain.exam;

/**
 * 抽象的职责类
 * Created by zhenggn on 2017/10/7.
 */
public abstract class Handler {
    private Handler successor = null;

    void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    Handler getSuccessor() {
        return this.successor;
    }

    abstract void handleRequest();

}
